using UnityEngine;
using System.Collections;

public class Menu : MonoBehaviour {

	// Use this for initialization
	void Start () {
		

	
	}
	
	// Update is called once per frame
	void Update () {		
		
	
	}
	
	void OnGUI()
	{
		
		// Create style for a button
	    GUIStyle myButtonStyle = new GUIStyle(GUI.skin.button);
	    myButtonStyle.fontSize = 25;
		
	 
	    // Load and set Font
	    Font myFont = (Font)Resources.Load("Fonts/comic", typeof(Font));
	    myButtonStyle.font = myFont;
	 
	    // Set color for selected and unselected buttons
	    myButtonStyle.normal.textColor = Color.red;
	    myButtonStyle.hover.textColor = Color.green;
 
    
 
	    // use style in button
	    //bool testButtonTwo = GUI.Button(new Rect(10,10,50,50), "test", myButtonStyle);
		
		if(GUI.Button(new Rect(Screen.width/2-100,Screen.height/2-50,200,100),"Start Game",myButtonStyle))
		{
			
			Application.LoadLevel("DebugStage");
			Time.timeScale = 1f;
			
		}
		
		
		
	}
}
